Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODFrame


EditInLink

The EditInLink method returns a Boolean value that indicates whether the part maintaining a link destination (that includes this frame) can be found.

ODBoolean EditInLink ();
return value
kODTrue if the part maintaining a link destination (that includes this frame) can be found, otherwise kODFalse.
DISCUSSION
Your part calls this method when the user attempts to edit in a display frame that has a link status of kODInLinkDestination. This method in turn calls the EditInLinkAttempted method of the part that maintains that link destination. That part then displays an alert allowing the user to find the source of the link or to break the link. If the user chooses to break the link, that part changes the link status of the embedded frame accordingly.

If the part maintaining the link destination was found, this method returns kODTrue and, if the link status of this frame was changed, you can then allow editing. In the unlikely event that the part maintaining the link destination cannot be found, this method returns kODFalse, and your part should display an alert informing the user that the destination of the link cannot be edited.

SEE ALSO
The ODPart::EditInLinkAttempted method (page 509).
"Editing a Link Destination" on page 393 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help